package com.youths.dao;

import com.youths.domain.LabelAdmin;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

public interface LabelAdminMapper {
    List<LabelAdmin> login(@Param("loginAccount") String loginAccount, @Param("password")  String password);

    List<LabelAdmin> getList(@Param("adminId") Integer adminId,
                             @Param("type") Integer type,
                             @Param("name") String name,
                             @Param("account") String account);

    Integer createAdmin(@Param("phone") String phone,
                        @Param("name") String name,
                        @Param("password") String password);

    Integer updatePassword(@Param("adminId") Integer adminId,
                           @Param("password") String password);

    Integer updatePower(@Param("adminId") Integer adminId,
                        @Param("power") Integer power);

    Integer updateState(@Param("adminId") Integer adminId,
                        @Param("state") Integer state);
}